<{assign var="tpl_page_title" value="订单列表"}>
<{include file="mobile/block/header.html"}>
<div class="pading admin_banner">
	<a href="<{link ctl='mobile/ucenter:info'}>" style="display:block;">
	<div class="admin_intro"><img src="<{$pager.img}>/<{$MEMBER.face}>" class="lt" />
		<div class="lt">
			<p><{$MEMBER.uname}></p>
			<p>账户类型：<u><{$MEMBER.from_title}></u> </p>
			<p>我的金币：<u><{$MEMBER.gold}></u></p>
		</div>
		<div class="cl"></div>
	</div>
	</a>
</div>

<{foreach $items as $order}>
 <div class="yuyue_box zbiao_manage">
 <table cellpadding="0" cellspacing="0">
  	<tr>
        <td width="40%">买家：<{$member_list[$order.uid].uname|default:'--'}></td>
        <td width="60%"><a href="<{link ctl='mobile/ucenter/order:shop_detail' arg0=$order.order_no}>"><u class="fontcl2">订单详情</u></a></td>
    </tr>
<{foreach $product_list as $product}>
    <{if $product.order_id == $order.order_id}>
            <tr>
              
                <td rowspan="2"><img src="<{$pager.img}>/<{$product.photo}>.jpg" photo="<{$pager.img}>/<{$product.photo}>.jpg"></td>
                
            </tr>
            <tr>
                <td><{$product.product_name}><{if $product.spec_id}><br/>规格：<{$product.spec_name}><{/if}><br/>￥<{$product.product_price}> x <{$product.number}></td>
            </tr>
    <{/if}>
    <{/foreach}>
    <tr>
    	
    	<td rowspan="<{$order.product_number}>" class="order-status w-150">
            <{if $order.order_status == 2}><b class="gray">订单完成</b>
            <{elseif $order.order_status == 1}><b class="gray">订单已发货<br />等待买家确认收货</b>
            <{elseif $order.order_status < 0}><b class="gray">订单已经取消</b>
            <{elseif empty($order.pay_status)}>
                <a href="<{link ctl='mobile/ucenter/order:shop_update' arg0='ship' arg1=$order.order_no}>" mini-act="confirm:您确定要该订单已发货？"  class="btn mainbtn">订单发货</a>&nbsp;&nbsp;
                <a href="<{link ctl='mobile/ucenter/order:shop_update' arg0='cancel' arg1=$order.order_no}>" mini-act="confirm:您确定要取消订单？" class="btn mainbtn">取消订单</span>
            <{else}><a href="<{link ctl='mobile/ucenter/order:shop_update' arg0='ship' arg1=$order.order_no}>" mini-act="confirm:您确定要该订单已发货？" class="btn mainbtn">订单发货</a>
            <{/if}>
        </td>
         <td>
        ￥<{$order.amount }><span class="gray">(<{if $order.freight>0}>运费：￥<{$order.freight}><{else}>包邮<{/if}>)</span><br/>
         <{if $order.order_status < 2 && $order.order_status >=0}>
            <{if $order.pay_status}><b><a>已经支付</a></b><{else}><b class="pointcl">等待支付</b><{/if}>
         <{/if}>
        </td>
    
    </tr>
     </table>
      </div>
   <{foreachelse}>
   <div class="no_record">暂无记录信息</div>
    <{/foreach}>
<{include file="mobile/block/footer.html"}>
